insertText

public static EditorCommand insertText(String text)

Returns a command that allows inserting the given text content in a WYSIWYG editor or a text field.

Parameters

text

a text content to insert